<template>
  <div class="equip">
    <img src="@/assets/images/common/chip-up.png" class="img" />
    <div v-for="item of tip" :key="item.label" :class="['tip', item.class]" :style="item.style">{{ item.label }}</div>
  </div>
</template>
<script setup>
import { ref } from "vue";
let tip = [
  { label: "出料", class: "down", style: { top: "73%", left: "3%" } },
  { label: "Tray盘上料", class: "tray-up", style: { top: "51%", left: "3%" } },
  { label: "上盖上料", class: "cap-up", style: { top: "33%", left: "3%" } },
  { label: "下分盘", class: "down-pan", style: { top: "100%", left: "41%" } },
  { label: "泰维克纸上料", class: "paper-up", style: { top: "-7%", left: "33%" } },
  { label: "Tray盘分料", class: "tray-fen", style: { top: "-7%", left: "47%" } },
  { label: "上盖分料", class: "cap-fen", style: { top: "100%", left: "53%" } },
  { label: "堆垛下料", class: "stack-down", style: { top: "-7%", left: "58%" } },
  { label: "束带机", class: "Strap", style: { top: "33%", left: "91%" } },
  { label: "打印机", class: "print", style: { top: "55%", left: "91%" } },
];
</script>
<style scoped lang="scss">
.equip {
  width: 100%;
  // height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  .img {
    width: 80%;
    height: 80%;
  }
  .tip {
    position: absolute;
    font-size: 14px;
    background-image: url("@/assets/images/box/title-box.png");
    color: #fff;
    padding: 5px 10px;
  }
  .down {
    &::before {
      position: absolute;
      top: 14px;
      right: -100px;
      content: "";
      width: 100px;
      border-top: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      top: 10px;
      right: -100px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .tray-up {
    &::before {
      position: absolute;
      top: 14px;
      right: -100px;
      content: "";
      width: 100px;
      border-top: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      top: 10px;
      right: -100px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .cap-up {
    &::before {
      position: absolute;
      top: 14px;
      right: -100px;
      content: "";
      width: 100px;
      border-top: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      top: 10px;
      right: -100px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .paper-up {
    &::before {
      position: absolute;
      bottom: -90px;
      right: 50%;
      content: "";
      height: 90px;
      border-left: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      bottom: -90px;
      right: 47%;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .tray-fen {
    &::before {
      position: absolute;
      bottom: -150px;
      right: 50%;
      content: "";
      height: 150px;
      border-left: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      bottom: -150px;
      right: 47%;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .stack-down {
    &::before {
      position: absolute;
      bottom: -120px;
      left: 20%;
      content: "";
      height: 120px;
      border-left: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      bottom: -120px;
      left: 18%;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .Strap {
    &::before {
      position: absolute;
      top: 50%;
      left: -170px;
      content: "";
      width: 170px;
      border-top: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      top: 40%;
      left: -170px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .print {
    &::before {
      position: absolute;
      top: 50%;
      left: -100px;
      content: "";
      width: 100px;
      border-top: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      top: 40%;
      left: -100px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .down-pan {
    &::before {
      position: absolute;
      top: -210px;
      left: 50%;
      content: "";
      height: 210px;
      border-left: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      top: -210px;
      left: 46%;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
  .cap-fen {
    &::before {
      position: absolute;
      top: -350px;
      left: 50%;
      content: "";
      height: 350px;
      border-left: 2px dashed aqua;
    }
    &::after {
      position: absolute;
      content: "";
      top: -350px;
      left: 46%;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgb(198, 244, 35);
    }
  }
}
</style>
